<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        
        
        
        <link rel="shortcut icon" href="../../img/favicon.ico">
        <title>合同管理 - Contract Docs</title>
        <link href="../../css/bootstrap-custom.min.css" rel="stylesheet">
        <link href="../../css/font-awesome.min.css" rel="stylesheet">
        <link href="../../css/base.css" rel="stylesheet">
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css">
        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
            <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
            <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->

        <script src="../../js/jquery-1.10.2.min.js" defer></script>
        <script src="../../js/bootstrap-3.0.3.min.js" defer></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
        <script>hljs.initHighlightingOnLoad();</script> 
    </head>

    <body>

        <div class="navbar navbar-default navbar-fixed-top" role="navigation">
            <div class="container">

                <!-- Collapsed navigation -->
                <div class="navbar-header">
                    <!-- Expander button -->
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="../..">Contract Docs</a>
                </div>

                <!-- Expanded navigation -->
                <div class="navbar-collapse collapse">
                        <!-- Main navigation -->
                        <ul class="nav navbar-nav">
                            <li >
                                <a href="../..">Home</a>
                            </li>
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">User <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    
<li >
    <a href="../../user/user/">Main</a>
</li>
                                </ul>
                            </li>
                            <li class="dropdown active">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Contract <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    
<li >
    <a href="../car/">车辆管理</a>
</li>
                                    
<li >
    <a href="../enterprise/">企业认证</a>
</li>
                                    
<li class="active">
    <a href="./">合同管理</a>
</li>
                                    
<li >
    <a href="../contract_account/">合同账户</a>
</li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">管理后台 <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    
<li >
    <a href="../../admin/admin/">后台接口</a>
</li>
                                    
<li >
    <a href="../../admin/user/">用户</a>
</li>
                                </ul>
                            </li>
                        </ul>

                    <ul class="nav navbar-nav navbar-right">
                        <li>
                            <a href="#" data-toggle="modal" data-target="#mkdocs_search_modal">
                                <i class="fa fa-search"></i> Search
                            </a>
                        </li>
                            <li >
                                <a rel="next" href="../enterprise/">
                                    <i class="fa fa-arrow-left"></i> Previous
                                </a>
                            </li>
                            <li >
                                <a rel="prev" href="../contract_account/">
                                    Next <i class="fa fa-arrow-right"></i>
                                </a>
                            </li>
                    </ul>
                </div>
            </div>
        </div>

        <div class="container">
                <div class="col-md-3"><div class="bs-sidebar hidden-print affix well" role="complementary">
    <ul class="nav bs-sidenav">
        <li class="main active"><a href="#_1">合同管理</a></li>
            <li><a href="#_2">修订记录</a></li>
            <li><a href="#_3">背景</a></li>
            <li><a href="#_4">产品说明</a></li>
            <li><a href="#_5">关键流程说明</a></li>
            <li><a href="#_6">接口说明</a></li>
    </ul>
</div></div>
                <div class="col-md-9" role="main">

<h1 id="_1">合同管理</h1>
<div class="toc">
<ul>
<li><a href="#_1">合同管理</a><ul>
<li><a href="#_2">修订记录</a></li>
<li><a href="#_3">背景</a></li>
<li><a href="#_4">产品说明</a></li>
<li><a href="#_5">关键流程说明</a></li>
<li><a href="#_6">接口说明</a><ul>
<li><a href="#10">1.0 创建合同</a><ul>
<li><a href="#_7">接口说明</a></li>
<li><a href="#_8">请求说明</a></li>
<li><a href="#_9">输入参数</a></li>
<li><a href="#_10">错误说明</a></li>
<li><a href="#_11">返回实例</a></li>
</ul>
</li>
<li><a href="#12">1.2 合同预览</a><ul>
<li><a href="#_12">请求说明</a></li>
<li><a href="#_13">输入参数</a></li>
<li><a href="#_14">错误说明</a></li>
<li><a href="#_15">返回实例</a></li>
</ul>
</li>
<li><a href="#13">1.3 保存草稿</a><ul>
<li><a href="#_16">接口说明</a></li>
<li><a href="#_17">请求说明</a></li>
<li><a href="#_18">输入参数</a></li>
<li><a href="#_19">错误说明</a></li>
<li><a href="#_20">返回实例</a></li>
</ul>
</li>
<li><a href="#14">1.4 结算页</a><ul>
<li><a href="#_21">接口说明</a></li>
<li><a href="#_22">请求说明</a></li>
<li><a href="#_23">输入参数</a></li>
<li><a href="#_24">错误说明</a></li>
<li><a href="#_25">返回实例</a></li>
</ul>
</li>
<li><a href="#15">1.5 合同预签页</a><ul>
<li><a href="#_26">接口说明</a></li>
<li><a href="#_27">请求说明</a></li>
<li><a href="#_28">输入参数</a></li>
<li><a href="#_29">错误说明</a></li>
<li><a href="#_30">返回实例</a></li>
</ul>
</li>
<li><a href="#15_1">1.5 合同预签页</a><ul>
<li><a href="#_31">接口说明</a></li>
<li><a href="#_32">请求说明</a></li>
<li><a href="#_33">输入参数</a></li>
<li><a href="#_34">错误说明</a></li>
<li><a href="#_35">返回实例</a></li>
</ul>
</li>
<li><a href="#15_2">1.5 合同签署第一步验证码获取</a><ul>
<li><a href="#_36">接口说明</a></li>
<li><a href="#_37">请求说明</a></li>
<li><a href="#_38">输入参数</a></li>
<li><a href="#_39">错误说明</a></li>
<li><a href="#_40">返回实例</a></li>
</ul>
</li>
<li><a href="#16">1.6 合同签署第二步</a><ul>
<li><a href="#_41">接口说明</a></li>
<li><a href="#_42">请求说明</a></li>
<li><a href="#_43">输入参数</a></li>
<li><a href="#_44">错误说明</a></li>
<li><a href="#_45">返回实例</a></li>
</ul>
</li>
<li><a href="#17">1.7 合同管理</a><ul>
<li><a href="#_46">接口说明</a></li>
<li><a href="#_47">请求说明</a></li>
<li><a href="#_48">输入参数</a></li>
<li><a href="#_49">错误说明</a></li>
<li><a href="#_50">返回实例</a></li>
</ul>
</li>
<li><a href="#17_1">1.7 合同管理</a><ul>
<li><a href="#_51">接口说明</a></li>
<li><a href="#_52">请求说明</a></li>
<li><a href="#_53">输入参数</a></li>
<li><a href="#_54">错误说明</a></li>
<li><a href="#_55">返回实例</a></li>
</ul>
</li>
<li><a href="#18">1.8 发邮件</a><ul>
<li><a href="#_56">接口说明</a></li>
<li><a href="#_57">请求说明</a></li>
<li><a href="#_58">输入参数</a></li>
<li><a href="#_59">错误说明</a></li>
<li><a href="#_60">返回实例</a></li>
</ul>
</li>
<li><a href="#19">1.9 我的签章</a><ul>
<li><a href="#_61">接口说明</a></li>
<li><a href="#_62">请求说明</a></li>
<li><a href="#_63">输入参数</a></li>
<li><a href="#_64">错误说明</a></li>
<li><a href="#_65">返回实例</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<h2 id="_2">修订记录</h2>
<hr />
<table>
<thead>
<tr>
<th>日期</th>
<th>作者</th>
<th>修订类型</th>
<th>修订内容</th>
<th>版本</th>
</tr>
</thead>
<tbody>
<tr>
<td>2020年09月08日</td>
<td>冷立纲</td>
<td>A</td>
<td>新增设计方案</td>
<td>1.0</td>
</tr>
</tbody>
</table>
<blockquote>
<p>【修订类型：A-新增  M-修改 D-删除】</p>
</blockquote>
<h2 id="_3">背景</h2>
<p>合同管理接口</p>
<h2 id="_4">产品说明</h2>
<h2 id="_5">关键流程说明</h2>
<h2 id="_6">接口说明</h2>
<h4 id="10">1.0 创建合同</h4>
<h5 id="_7">接口说明</h5>
<p>添加用户车辆</p>
<h5 id="_8">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">post</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/contract/add</td>
</tr>
</tbody>
</table>
<h5 id="_9">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">carId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">车辆ID</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">name</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">名字</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">signDate</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">签署日期</td>
<td align="left">2020年09月09日</td>
</tr>
<tr>
<td align="left">valuation</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">车辆估值</td>
<td align="left">车辆估值</td>
</tr>
<tr>
<td align="left">signAddr</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">北京市朝阳区望京街</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">rentStart</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">开始时间</td>
<td align="left">yyyyMMddHHmm</td>
</tr>
<tr>
<td align="left">rentEnd</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">结束时间</td>
<td align="left">yyyyMMddHHmm</td>
</tr>
<tr>
<td align="left">returnDate</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">归还日期</td>
<td align="left">yyyyMMddHHmm</td>
</tr>
<tr>
<td align="left">returnAddr</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">归还地址</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">rentDayMoney</td>
<td align="center">是</td>
<td align="left">double</td>
<td align="left">日租金</td>
<td align="left">单位(元)</td>
</tr>
<tr>
<td align="left">rentTotalMoney</td>
<td align="center">否</td>
<td align="left">double</td>
<td align="left">总租金</td>
<td align="left">单位(元)</td>
</tr>
<tr>
<td align="left">rentPayType</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">支付方式</td>
<td align="left">0 一次性支付 1 周期支付</td>
</tr>
<tr>
<td align="left">cycleType</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">周期支付方式</td>
<td align="left">1天 2月 3季度 4半年 5年</td>
</tr>
<tr>
<td align="left">cycleMoney</td>
<td align="center">否</td>
<td align="left">double</td>
<td align="left">周期支付金额</td>
<td align="left">单位 元</td>
</tr>
<tr>
<td align="left">depositType</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">押金类型</td>
<td align="left">0 无押金   1押金</td>
</tr>
<tr>
<td align="left">carDepositMoney</td>
<td align="center">否</td>
<td align="left">double</td>
<td align="left">车辆押金</td>
<td align="left">单位元</td>
</tr>
<tr>
<td align="left">violationDepositMoney</td>
<td align="center">否</td>
<td align="left">double</td>
<td align="left">违章押金</td>
<td align="left">单位元</td>
</tr>
<tr>
<td align="left">payType</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">支付方式</td>
<td align="left">balance 余额支付 / WX_MP 微信小程序支付</td>
</tr>
<tr>
<td align="left">contractType</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">合同类型</td>
<td align="left">1 调车合同  2 租车合同</td>
</tr>
<tr>
<td align="left">signType</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">签署类型</td>
<td align="left">0 个人签  2 企业签</td>
</tr>
</tbody>
</table>
<h5 id="_10">错误说明</h5>
<ol>
<li>缺少必填的参数。</li>
</ol>
<h5 id="_11">返回实例</h5>
<pre><code class="json">
    {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
            &quot;payOrderId&quot;:xxxx,//订单号
            &quot;callPayInfo&quot;:xxxxx, //各平台对应支付信息 
       }
    }

</code></pre>

<h4 id="12">1.2 合同预览</h4>
<h5 id="_12">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">post</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/contract/preview</td>
</tr>
</tbody>
</table>
<h5 id="_13">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">carId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">车辆ID</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">name</td>
<td align="center">否</td>
<td align="left">string</td>
<td align="left">名字</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">signDate</td>
<td align="center">否</td>
<td align="left">string</td>
<td align="left">签署日期</td>
<td align="left">2020年09月09日</td>
</tr>
<tr>
<td align="left">valuation</td>
<td align="center">否</td>
<td align="left">string</td>
<td align="left">车辆估值</td>
<td align="left">车辆估值</td>
</tr>
<tr>
<td align="left">signAddr</td>
<td align="center">否</td>
<td align="left">string</td>
<td align="left">北京市朝阳区望京街</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">rentStart</td>
<td align="center">否</td>
<td align="left">string</td>
<td align="left">开始时间</td>
<td align="left">yyyyMMddHHmm</td>
</tr>
<tr>
<td align="left">rentEnd</td>
<td align="center">否</td>
<td align="left">string</td>
<td align="left">结束时间</td>
<td align="left">yyyyMMddHHmm</td>
</tr>
<tr>
<td align="left">returnDate</td>
<td align="center">否</td>
<td align="left">string</td>
<td align="left">归还日期</td>
<td align="left">yyyyMMddHHmm</td>
</tr>
<tr>
<td align="left">returnAddr</td>
<td align="center">否</td>
<td align="left">string</td>
<td align="left">归还地址</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">rentDayMoney</td>
<td align="center">否</td>
<td align="left">double</td>
<td align="left">日租金</td>
<td align="left">单位(元)</td>
</tr>
<tr>
<td align="left">rentTotalMoney</td>
<td align="center">否</td>
<td align="left">double</td>
<td align="left">总租金</td>
<td align="left">单位(元)</td>
</tr>
<tr>
<td align="left">rentPayType</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">支付方式</td>
<td align="left">0 一次性支付 1 周期支付</td>
</tr>
<tr>
<td align="left">cycleType</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">周期支付方式</td>
<td align="left">1天 2月 3季度 4半年 5年</td>
</tr>
<tr>
<td align="left">cycleMoney</td>
<td align="center">否</td>
<td align="left">double</td>
<td align="left">周期支付金额</td>
<td align="left">单位 元</td>
</tr>
<tr>
<td align="left">depositType</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">押金类型</td>
<td align="left">0 无押金   1押金</td>
</tr>
<tr>
<td align="left">carDepositMoney</td>
<td align="center">否</td>
<td align="left">double</td>
<td align="left">车辆押金</td>
<td align="left">单位元</td>
</tr>
<tr>
<td align="left">violationDepositMoney</td>
<td align="center">否</td>
<td align="left">double</td>
<td align="left">违章押金</td>
<td align="left">单位元</td>
</tr>
</tbody>
</table>
<h5 id="_14">错误说明</h5>
<h5 id="_15">返回实例</h5>
<p>pdf 文件流</p>
<h4 id="13">1.3 保存草稿</h4>
<h5 id="_16">接口说明</h5>
<p>保存合同草稿</p>
<h5 id="_17">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">post</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/contract/save</td>
</tr>
</tbody>
</table>
<h5 id="_18">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">carId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">车辆ID</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">name</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">名字</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">signDate</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">签署日期</td>
<td align="left">2020年09月09日</td>
</tr>
<tr>
<td align="left">valuation</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">车辆估值</td>
<td align="left">车辆估值</td>
</tr>
<tr>
<td align="left">signAddr</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">北京市朝阳区望京街</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">rentStart</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">开始时间</td>
<td align="left">yyyyMMddHHmm</td>
</tr>
<tr>
<td align="left">rentEnd</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">结束时间</td>
<td align="left">yyyyMMddHHmm</td>
</tr>
<tr>
<td align="left">returnDate</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">归还日期</td>
<td align="left">yyyyMMddHHmm</td>
</tr>
<tr>
<td align="left">returnAddr</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">归还地址</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">rentDayMoney</td>
<td align="center">是</td>
<td align="left">double</td>
<td align="left">日租金</td>
<td align="left">单位(元)</td>
</tr>
<tr>
<td align="left">rentTotalMoney</td>
<td align="center">否</td>
<td align="left">double</td>
<td align="left">总租金</td>
<td align="left">单位(元)</td>
</tr>
<tr>
<td align="left">rentPayType</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">支付方式</td>
<td align="left">0 一次性支付 1 周期支付</td>
</tr>
<tr>
<td align="left">cycleType</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">周期支付方式</td>
<td align="left">1天 2月 3季度 4半年 5年</td>
</tr>
<tr>
<td align="left">cycleMoney</td>
<td align="center">否</td>
<td align="left">double</td>
<td align="left">周期支付金额</td>
<td align="left">单位 元</td>
</tr>
<tr>
<td align="left">depositType</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">押金类型</td>
<td align="left">0 无押金   1押金</td>
</tr>
<tr>
<td align="left">carDepositMoney</td>
<td align="center">否</td>
<td align="left">double</td>
<td align="left">车辆押金</td>
<td align="left">单位元</td>
</tr>
<tr>
<td align="left">violationDepositMoney</td>
<td align="center">否</td>
<td align="left">double</td>
<td align="left">违章押金</td>
<td align="left">单位元</td>
</tr>
<tr>
<td align="left">payType</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">支付方式</td>
<td align="left">balance 余额支付 / WX_MP 微信小程序支付</td>
</tr>
</tbody>
</table>
<h5 id="_19">错误说明</h5>
<ol>
<li>缺少必填的参数。</li>
</ol>
<h5 id="_20">返回实例</h5>
<pre><code class="json">
{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;id&quot;:&quot;xxx&quot;  //草稿ID  
    }
}

</code></pre>

<h4 id="14">1.4 结算页</h4>
<h5 id="_21">接口说明</h5>
<p>输出用户合同余额</p>
<h5 id="_22">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/contract/checkout</td>
</tr>
</tbody>
</table>
<h5 id="_23">输入参数</h5>
<p>无</p>
<h5 id="_24">错误说明</h5>
<ol>
<li>缺少必填的参数。</li>
</ol>
<h5 id="_25">返回实例</h5>
<pre><code class="json">
{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;balance&quot;: 0, //剩余合同
        &quot;price&quot;: 20.0, //合同单价
        &quot;minPrice&quot;: 10.0 //合同最低价
    }
}

</code></pre>

<h4 id="15">1.5 合同预签页</h4>
<h5 id="_26">接口说明</h5>
<p>输出用户合同余额</p>
<h5 id="_27">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/contract/presign/{id}</td>
</tr>
</tbody>
</table>
<h5 id="_28">输入参数</h5>
<p>URL参数:</p>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">id</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">合同ID</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_29">错误说明</h5>
<ol>
<li>缺少必填的参数。</li>
</ol>
<h5 id="_30">返回实例</h5>
<pre><code class="json">
{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;id&quot;: 9, //合同ID
        &quot;realname&quot;: &quot;冷立纲&quot;, //真实姓名
        &quot;avatar&quot;: null, //头像
        &quot;title&quot;: &quot;test&quot;, //title
        &quot;status&quot;: 1, //状态 0:初始 1:待签署 2:已签署
        &quot;expireTime&quot;: null
    }
}

</code></pre>

<h4 id="15_1">1.5 合同预签页</h4>
<h5 id="_31">接口说明</h5>
<p>输出用户合同余额</p>
<h5 id="_32">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/contract/detail/{id}</td>
</tr>
</tbody>
</table>
<h5 id="_33">输入参数</h5>
<p>URL参数:</p>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">id</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">合同ID</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_34">错误说明</h5>
<ol>
<li>缺少必填的参数。</li>
</ol>
<h5 id="_35">返回实例</h5>
<pre><code class="json">
{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;id&quot;: {
            &quot;id&quot;: 10,
            &quot;url&quot;: &quot;http://quick-contract.oss-cn-beijing.aliyuncs.com/emg9bthg9yr7cx35nayi.pdf?Expires=1599833230&amp;OSSAccessKeyId=LTAI4FzddSZr1XtviwXwEGzz&amp;Signature=vfelRZ93HUM6xhyg82Ww0iHbk1o%3D&quot;,  //合同，有效期10分钟
            &quot;expireTime&quot;: &quot;2020-09-12 21:55:15&quot;, //过期时间24小时
            &quot;status&quot;: 1 // 1 待签署 2 已签署 0 初始 -1 过期作废
        }
    }
}

</code></pre>

<h4 id="15_2">1.5 合同签署第一步验证码获取</h4>
<h5 id="_36">接口说明</h5>
<p>输出用户合同余额</p>
<h5 id="_37">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">post</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/contract/sign/{id}/step1</td>
</tr>
</tbody>
</table>
<h5 id="_38">输入参数</h5>
<p>URL参数:</p>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">id</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">合同ID</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_39">错误说明</h5>
<ol>
<li>缺少必填的参数。</li>
</ol>
<h5 id="_40">返回实例</h5>
<pre><code class="json">
{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;flowId&quot;: &quot;1427689130229263187&quot; //流水
    }
}

</code></pre>

<h4 id="16">1.6 合同签署第二步</h4>
<h5 id="_41">接口说明</h5>
<p>输出用户合同余额</p>
<h5 id="_42">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">post</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/contract/sign/{id}/step2</td>
</tr>
</tbody>
</table>
<h5 id="_43">输入参数</h5>
<p>URL参数:</p>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">id</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">合同ID</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_44">错误说明</h5>
<ol>
<li>缺少必填的参数。</li>
</ol>
<h5 id="_45">返回实例</h5>
<pre><code class="json">
{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {

    }
}

</code></pre>

<h4 id="17">1.7 合同管理</h4>
<h5 id="_46">接口说明</h5>
<p>输出用户合同余额</p>
<h5 id="_47">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/contract/list</td>
</tr>
</tbody>
</table>
<h5 id="_48">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">showType</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">显示类型</td>
<td align="left">2:已签署,1:待签署,-1:已作废,3:草稿</td>
</tr>
<tr>
<td align="left">page</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">分页</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">limit</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">单页条数</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_49">错误说明</h5>
<ol>
<li>缺少必填的参数。</li>
</ol>
<h5 id="_50">返回实例</h5>
<pre><code class="json">
{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;pageSize&quot;: 10,
        &quot;currentPage&quot;: 1,
        &quot;list&quot;: [
            {
                &quot;carImages&quot;: [
                    &quot;/a&quot;
                ],
                &quot;carBrand&quot;: &quot;法拉利&quot;, //品牌
                &quot;carModel&quot;: &quot;458&quot;, //型号
                &quot;carColor&quot;: &quot;red&quot;, //颜色
                &quot;carNum&quot;: &quot;xxx&quot;, //车牌
                &quot;partyARealname&quot;: &quot;孙涛&quot;, //甲方
                &quot;partyBRealname&quot;: &quot;冷立纲&quot;, //乙方
                &quot;name&quot;: &quot;test&quot;, //合同名称
                &quot;rentStart&quot;: &quot;2020-09-07 15:00:00&quot;, //有效期 开始
                &quot;rentEnd&quot;: &quot;2020-09-11 22:07:37&quot;, //有效期 结束
                &quot;status&quot;: 2, //合同状态  0:初始 1:待签署 2:已签署 -1 已过期
                &quot;payStatus&quot;: 1, //支付状态 0 初始 1 成功
                &quot;bindStatus&quot;: 1, //绑定状态 0 初始 1 成功
                &quot;addTime&quot;: null, //添加时间
                &quot;expireTime&quot;: null //失效时间
            }
        ],
        &quot;end&quot;: true,
        &quot;empty&quot;: false,
        &quot;startIndex&quot;: 0,
        &quot;totalPage&quot;: null
    }
}

</code></pre>

<h4 id="17_1">1.7 合同管理</h4>
<h5 id="_51">接口说明</h5>
<p>输出用户合同余额</p>
<h5 id="_52">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/contract/draft/detail/{id}</td>
</tr>
</tbody>
</table>
<h5 id="_53">输入参数</h5>
<p>URL参数:</p>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">id</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">草稿ID</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_54">错误说明</h5>
<ol>
<li>缺少必填的参数。</li>
</ol>
<h5 id="_55">返回实例</h5>
<pre><code class="json">
{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;rentDayMoney&quot;: 50.0,  //每日租金
        &quot;rentTotalMoney&quot;: 100.0 //总租金,
        &quot;cycleMoney&quot;: 50.0, //每日还款
        &quot;carDepositMoney&quot;: 22.0, //押金
        &quot;violationDepositMoney&quot;: 40.0, //违章押金
        &quot;totalDepositMoney&quot;: 62.0, //总押金
        &quot;rentStart&quot;: &quot;202009071500&quot;, //开始时间
        &quot;rentEnd&quot;: &quot;202009071600&quot;, //结束时间
        &quot;rentDays&quot;: 1, //租赁天数
        &quot;returnDate&quot;: &quot;202009071600&quot;, //归还日期
        &quot;id&quot;: null, //草稿ID
        &quot;name&quot;: &quot;test&quot;, //合同名称
        &quot;signDate&quot;: &quot;2020年09月09日&quot;, //签署日期
        &quot;signAddr&quot;: &quot;北京市朝阳区望京街&quot;, //签署地点
        &quot;returnAddr&quot;: &quot;北京京师&quot;,  //归还地点
        &quot;rentPayType&quot;: 1, //0 一次性支付 1 周期支付 
        &quot;cycleType&quot;: 2, //周期支付方式:  1天 2月 3季度 4半年 5年 
        &quot;depositType&quot;: 2, //押金类型  0 无押金  1押金
        &quot;addTime&quot;: 1599652953545, //添加时间
        &quot;detete&quot;: null, 
        &quot;carImages&quot;: [  //车辆图片
            &quot;/a&quot;
        ],
        &quot;carBrand&quot;: &quot;法拉利&quot;, //品牌
        &quot;carModel&quot;: &quot;458&quot;, //型号
        &quot;carValuation&quot;: &quot;200万&quot;, //估值
        &quot;carColor&quot;: &quot;red&quot;, //颜色
        &quot;carVin&quot;: &quot;123456&quot;, //车辆识别号
        &quot;carEngineNum&quot;: &quot;22222&quot;, //引擎号
        &quot;carNum&quot;: &quot;xxx&quot;, //车牌号
        &quot;carOilNum&quot;: &quot;98#&quot;, //油号
    }
}

</code></pre>

<h4 id="18">1.8 发邮件</h4>
<h5 id="_56">接口说明</h5>
<p>输出用户合同余额</p>
<h5 id="_57">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">post</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/contract/mail/{id}</td>
</tr>
</tbody>
</table>
<h5 id="_58">输入参数</h5>
<p>URL参数:</p>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">email</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">电子邮箱</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_59">错误说明</h5>
<ol>
<li>缺少必填的参数。</li>
</ol>
<h5 id="_60">返回实例</h5>
<pre><code class="json">
{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {

    }
}

</code></pre>

<h4 id="19">1.9 我的签章</h4>
<h5 id="_61">接口说明</h5>
<p>输出用户合同余额</p>
<h5 id="_62">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/seal/list</td>
</tr>
</tbody>
</table>
<h5 id="_63">输入参数</h5>
<p>无</p>
<h5 id="_64">错误说明</h5>
<ol>
<li>缺少必填的参数。</li>
</ol>
<h5 id="_65">返回实例</h5>
<pre><code class="json">
{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;name&quot;:&quot;签章名&quot;,
        &quot;selaText&quot;:&quot;aaaaaaxxcfsds&quot;, //图章base64编码
        &quot;type&quot;:0 // 0 个人章 1 组织章
    }
}

</code></pre></div>
        </div>

        <footer class="col-md-12">
            <hr>
            <p>Documentation built with <a href="https://www.mkdocs.org/">MkDocs</a>.</p>
        </footer>
        <script>
            var base_url = "../..",
                shortcuts = {"search": 83, "next": 78, "help": 191, "previous": 80};
        </script>
        <script src="../../js/base.js" defer></script>
        <script src="../../search/main.js" defer></script>

        <div class="modal" id="mkdocs_search_modal" tabindex="-1" role="dialog" aria-labelledby="Search Modal" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" id="exampleModalLabel">Search</h4>
            </div>
            <div class="modal-body">
                <p>
                    From here you can search these documents. Enter
                    your search terms below.
                </p>
                <form role="form">
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="Search..." id="mkdocs-search-query" title="Type search term here">
                    </div>
                </form>
                <div id="mkdocs-search-results"></div>
            </div>
            <div class="modal-footer">
            </div>
        </div>
    </div>
</div><div class="modal" id="mkdocs_keyboard_modal" tabindex="-1" role="dialog" aria-labelledby="Keyboard Shortcuts Modal" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" id="exampleModalLabel">Keyboard Shortcuts</h4>
            </div>
            <div class="modal-body">
              <table class="table">
                <thead>
                  <tr>
                    <th style="width: 20%;">Keys</th>
                    <th>Action</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td class="help shortcut"><kbd>?</kbd></td>
                    <td>Open this help</td>
                  </tr>
                  <tr>
                    <td class="next shortcut"><kbd>n</kbd></td>
                    <td>Next page</td>
                  </tr>
                  <tr>
                    <td class="prev shortcut"><kbd>p</kbd></td>
                    <td>Previous page</td>
                  </tr>
                  <tr>
                    <td class="search shortcut"><kbd>s</kbd></td>
                    <td>Search</td>
                  </tr>
                </tbody>
              </table>
            </div>
            <div class="modal-footer">
            </div>
        </div>
    </div>
</div>

    </body>
</html>
